﻿using System;
using GearUp.Crawler.Entities;
using System.Data.SqlServerCe;
using System.Threading.Tasks;

namespace GearUp.Crawler
{
    public class LoreBookItemRepository : ILoreBookItemRepository
    {
        public static SqlCeConnection GetOpenConnection()
        {
            var connection = new SqlCeConnection("");
            connection.Open();
            return connection;
        }

        public async Task Save(string crawledUrl, LorebookItem item)
        {
            //using (var connection = GetOpenConnection())
            //{

            //}
        }

        public string Load(string targetUrl)
        {
            throw new NotImplementedException();
        }
    }
}